<template>
  <div class="tag">
    <span :style="{ color: $store.state.isNightMode ? '#fff' : '#000' }"
      >标签：</span
    >
    <el-radio-group
      v-bind="$attrs"
      v-on="$listeners"
      :value="value"
      @input="$emit('input', $event)"
      size="medium"
    >
      <el-radio-button
        v-for="(item, index) in $store.state.tags"
        :key="index"
        :label="item"
      ></el-radio-button>
    </el-radio-group>
  </div>
</template>

<script>
export default {
  props: ["value"],
  inheritAttrs: false,
};
</script>

<style lang="less" scoped>
</style>